<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="ceph" uri="http://jsp.cephb.fr" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@page contentType="application/xhtml+xml" %>
<ceph:clear/><jsp:include page="../xhtml-header.jsp"/>
<head>
<jsp:include page="../style.jsp"/>
<jsp:include page="../script.jsp"/>
<title>Operon</title>
</head>
<body>
<jsp:include page="../top-banner.jsp"/>
<div>
<h3>Homo sapiens genome build 36 chromosome 1</h3>
<div>
<c:set var="chromMin" value="999999999" scope="page"/>
<c:set var="chromMax" value="0" scope="page"/> 
<c:forEach var="item" items="${items}">
<c:if test="${chromMin > item.p}" ><c:set var="chromMin" value="${item.p}" scope="page"/></c:if>
<c:if test="${chromMax < item.q}" ><c:set var="chromMax" value="${item.q}" scope="page"/></c:if>
</c:forEach>
<table  class="xtbl" cellspacing="0" cellpadding="0">
<caption>SeqMap</caption>
<thead>
<ceph:tr>
	<th>gi</th>
	<th>Position</th>
	<th>n</th>
	<th>ori</th>
	<th>FID</th>
	<th>acn</th>
	<th>alias</th>
	<th>chr</th>
	<th>dna</th>
	</ceph:tr>
</thead>
<tbody>

<c:forEach var="item" items="${items}">
<ceph:tr>
			<td class="SeqMap.gi"><ceph:gi><c:out value="${item.gi}" /></ceph:gi></td>
			<td><ceph:track end="${item.q}" title="${item.acn}"  start="${item.p}" min="${chromMin}" max="${chromMax}"/></td>
			<td class="SeqMap.n"><c:out value="${item.n}" /></td>
			<td class="SeqMap.ori"><c:out value="${item.ori}" /></td>
			<td class="SeqMap.fid"><c:url var="url" value="operon" >
				    <c:param name="app" value="genes" />
				    <c:param name="act" value="genmap" />
				    <c:param name="tax" value="9606" />
				    <c:param name="chr" value="${item.chr}" />
					<c:param name="key" value="ref" />
					<c:param name="set" value="36" />
					<c:param name="sid" value="${item.p}" />
					<c:param name="tid" value="${item.q}" />
				  </c:url><a href="${fn:escapeXml(url)}"><ceph:fid><c:out value="${item.fid}" /></ceph:fid></a></td>
			<td class="SeqMap.acn"><ceph:acn><c:out value="${item.acn}" /></ceph:acn></td>
			<td class="SeqMap.alias"><ceph:acn><c:out value="${item.alias}" /></ceph:acn></td>
			<td class="SeqMap.chr"><c:out value="${item.chr}" /></td>
			<td class="SeqMap.dna"><c:out value="${item.dna}" /></td>
	</ceph:tr>
</c:forEach>
</tbody>
<tfoot>
  <ceph:tr>
    <td colspan="11">
    	
    </td>
  </ceph:tr>
</tfoot>
</table>
</div>
</div>
<jsp:include page="../xhtml-footer.jsp"/>